package com.wbl.featurn.login

import com.wbl.network.toResult
import dagger.hilt.InstallIn
import kotlinx.coroutines.runBlocking
import javax.inject.Inject


class LoginCase @Inject constructor(
    private val loginRepository: LoginRepository
) {
    suspend operator fun invoke(userName: String, password: String): Result<String> {
        return loginRepository.login(userName, password).toResult()
    }
}